determining slope of a line